﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KeRui.Common;
using KeRui.Model;

public partial class Manage_Cms_ModuleList : System.Web.UI.Page
{
    protected List<KeRui.Model.TagModule> listTagModule = new List<TagModule>();
    protected int SiteID = PageRequest.GetInt("siteid", -1);
    protected void Page_Load(object sender, EventArgs e)
    {
        //检查管理员登录HYC
        ManageHelper.CheckAdminLogin();
        KeRui.BLL.TagModule bllTagModule = new KeRui.BLL.TagModule();
        listTagModule = bllTagModule.GetList("");
        switch (PageRequest.GetString("act"))
        {
            case "delete":
                //检查删除权限HYC
                ManageHelper.CheckAdminPower("site_modulelistdatele_" + SiteID);
                bllTagModule.Delete(PageRequest.GetInt("id", -1));
                Response.Redirect("ModuleList.aspx");
                Response.End();
                break;
        }
    }
}
